Add extention to s_and_t.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 4 Jul 2005 17:33:33 +0000 (17:33 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Mon, 4 Jul 2005 17:33:33 +0000 (17:33 +0000)
Tweak -^2 output to include extension info for xcsv formats.

gpsbabel/style/s_and_t.style
gpsbabel/vecs.c

index 391a96774275613179b753013749552e076a0e25..a9c685dd5e6cc6a9b0e407044a1381458705a813 100644 (file)
@@ -13,6 +13,8 @@
 #
 
 DESCRIPTION            Microsoft Streets and Trips 2002-2005
+EXTENSION               txt
+
 
 #
 # FILE LAYOUT DEFINITIIONS:
index cbd7bf9b51afbf1fb4402caf900901bbc8d72223..831b00ebd3f318e25ce550878b9fb4fb1940d7ab 100644 (file)
@@ -644,6 +644,7 @@ sort_and_unify_vecs(int *ctp)
                svp[i] = xcalloc(1, sizeof **svp);
                svp[i]->name = svec->name;
                svp[i]->vec = xmalloc(sizeof(*svp[i]->vec));
+               svp[i]->extension = xcsv_file.extension;
                *svp[i]->vec = *vec_list[0].vec; /* Interits xcsv opts */
                /* Reset file type to inherit ff_type from xcsv for everything
                 * except the xcsv format itself, which we leave as "internal"